package sample;

public class Dog extends eg5__6Animal{
    public Dog(){
    }
    public Dog(String name,String color){
        super(name, color);
    }

    @Override
    public void eat() {
        System.out.println(this.name+"is gnawing bone.");
    }

    @Override
    public void sleep() {
    System.out.println(this.name+"is sleeping on the floor.");
    }
}
